﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using EIA.Basic.Model;
using EIA.Basic.BLL.ClientProxy;

namespace EIA.WCFService.Basic.SilverlightTest
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
            
            TPositionProxy proxy = new TPositionProxy();
            XStaffProxy xStaffProxy = new XStaffProxy();
            X.ServiceAddress = "http://localhost:8733/Design_Time_Addresses/EIA.WCFService.BasicLogicalService/basic";
            xStaffProxy.ListAll((lst) =>
            {
                MessageBox.Show(Newtonsoft.Json.JsonConvert.SerializeObject(lst));
            });

            proxy.ListAll((lst) => 
            {
                MessageBox.Show(Newtonsoft.Json.JsonConvert.SerializeObject(lst)); 
            });
        }
    }
}
